/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"AEEF6806-916D-43CB-B9B1-FC1D5F09786D"}
 */
function onDataChangeNombre(oldValue, newValue, event) {
	nombre = nombre.toUpperCase()
	return true
}

/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"2B40C30B-6C9C-4888-BD53-6076E1D4E585"}
 */
function onDataChangeDireccion(oldValue, newValue, event) {
	direccion = direccion.toUpperCase()
	return true
}

/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"EBAC1EC1-8B1C-4C79-85C7-516EBEFCFA72"}
 */
function onDataChangeMail(oldValue, newValue, event) {
	mail = mail.toLowerCase()
	return true
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E84CA22A-A3CC-4076-8583-F2A822F6FC99"}
 */
function cerrar(event) {
	application.closeFormDialog('PACIENTE')
}
